<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updateBook.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  		<a href="menu/admin_menu.jsp"><h2>点击返回导航页</h2></a>
  	<center>
  		<br/><br/><br/><br/><br/>
  		<h1>修改图书信息</h1>
    	<form action="updateBook!updateBook.action" method="post">
    		<table border="1" width="60%"  border="0" cellpadding="3" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px;margin-top:8px;">
    			<tr>
    				<th></th>
	    			<th>ISBN</th>
					<th>BookName</th>
					<th>author</th>
					<th>price</th>
					<th>storageTime</th>
					<th>state</th>
				</tr>
				<tr>
					<td><input type="hidden" name="book.id" value="${requestScope.book.id}"></td>
					<td><input type="text" name="book.isbn" value="${requestScope.book.isbn}"></td>
					<td><input type="text" name="book.bookName" value="${requestScope.book.bookName}"></td>
					<td><input type="text" name="book.author" value="${requestScope.book.author}"></td>
					<td><input type="text" name="book.price" value="${requestScope.book.price}"></td>
					<td>${requestScope.book.storageTime}</td>
					<td>${requestScope.book.state}</td>
				</tr>
    		</table>
    		<input  type="submit" value="修改"/>
			<input type="reset" value="重填"/>
    	</form>
    </center>
  </body>
</html>
